KER_DIR=/home/rm/lht/rk3568_sdk_pack/linux_4.19_sdk/tmp/kernel
export ARCH=arm64
export CROSS_COMPILE=aarch64-buildroot-linux-gnu-
# export CROSS_COMPILE=/home/rm/lht/rk3568_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
KERNELDIR := $(KER_DIR)
CURRENT_PATH := $(shell pwd)

obj-m := led.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules

clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean

